package com.bh.statistics.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Description
 * @Author slx
 * @Date 2024/3/18
 */

@Mapper
public interface JcStatisticsMapper {

    Integer selectJcOrderCount(@Param("jcOrganizationId") Long jcOrganizationId);

    Integer selectJcShipmentCount(@Param("jcOrganizationId") Long jcOrganizationId);

    Integer selectOrgCount();

    Integer selectJcAmount(@Param("jcOrganizationId") Long jcOrganizationId);

    Integer selectJcCustomerCount(@Param("jcOrganizationId") Long jcOrganizationId);

    Map<String, Integer> selectJcWeekOrderCount(@Param("jcOrganizationId") Long jcOrganizationId);

    Map<String, Integer> selectJcWeekShipmentCount(@Param("jcOrganizationId") Long jcOrganizationId);

    Map<String, Integer> selectTopFiveCustomerOrderCount(@Param("jcOrganizationId") Long jcOrganizationId);

    /**
     * 查找当月的每日订单数量
     * @param jcOrganizationId
     * @return
     */
    Map<String, Integer> selectOrderCalendar(@Param("jcOrganizationId") Long jcOrganizationId);
}
